const testService = require('../services/testServer');
const R = require('../result/r');
class TestController {
  async listAll(ctx) {
    const list = await testService.listAll();
    ctx.body = R.ok().data(list);
  }
}

// 导出 Controller 的实例
module.exports = new TestController();